﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Configuration;
using XbdSoft.Contract;
using XbdSoft.Client;

namespace XbdSoft
{
    public  class Util
    {
        public static string AccountServiceAddress = ConfigurationManager.AppSettings["accountServiceAddress"];
        public static string DownloadServiceAddress = ConfigurationManager.AppSettings["downloadServiceAddress"];


        #region Service

        public static IAccountService AccountService = ServiceFactory.Create<IAccountService>(Util.AccountServiceAddress);
        public static IDownloadService DownloadService = ServiceFactory.Create<IDownloadService>(Util.DownloadServiceAddress);

        #endregion
    }
}
